from appium.webdriver.common.appiumby import AppiumBy
from appium.webdriver import Remote

from base.home_base import HomeBase


class HomePage(HomeBase):#
    def search_bar_click(self, driver: Remote):# 隐私政策同意
        search_bar_button_xpath = self.search_bar()
        # return driver.find_element(AppiumBy.XPATH, privacy_agree_button_xpath).click()
        return self.click_new(driver,AppiumBy.XPATH,search_bar_button_xpath)